package cn.tedu.v1.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 预约列表
 * </p>
 *
 * @author tedu.cn
 * @since 2021-07-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("appointment")
public class Appointment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 预约时间
     */
    @TableField("issued_time")
    private LocalDateTime issuedTime;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 预约状态0=未处理 1=预约成功
     */
    @TableField("status")
    private Integer status;

    /**
     * 科室
     */
    @TableField("office_id")
    private Integer officeId;

    /**
     * 症状描述
     */
    @TableField("description")
    private String description;

    /**
     * 医生id
     */
    @TableField("doctor_id")
    private Integer doctorId;

    /**
     * 预约时间
     */
    @TableField("appoint_time")
    private String appointTime;

    /**
     * 预约时间
     */
    @TableField("gender")
    private String gender;

    /**
     * 姓名
     */
    @TableField("name")
    private String name;

    /**
     * 患者年龄
     */
    @TableField("age")
    private Integer age;

    /**
     * 预约的医生姓名
     */
   @TableField(exist = false)
    private String doctorName;

    /**
     * 预约的部门名称
     */
    @TableField(exist = false)
    private String departmentName;

    /**
     * 病人电话
     */
    @TableField("phone")
    private String phone;
}
